Skip to content

fix(react): handle renamed key in room options serializer#1312

Merged
1egoman merged 2 commits intolivekit:mainfrom
afgarcia86:fix/handle-encryption-key-in-room-options-serializer
Mar 20, 2026
Merged

fix(react): handle renamed key in room options serializer#1312
1egoman merged 2 commits intolivekit:mainfrom
afgarcia86:fix/handle-encryption-key-in-room-options-serializer

Conversation

@afgarcia86
Copy link
Copy Markdown
Contributor

client-sdk-js marked e2ee as a deprecated key in favor of encryption, but roomOptionsStringifyReplacer only special-cased e2ee. This caused the encryption object (with new worker/keyProvider references each render) to be compared by value, triggering a reconnect loop when using the new key.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 20, 2026

🦋 Changeset detected

Latest commit: 511d97e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@livekit/components-react Patch
@agents-ui Patch
@livekit/component-example-next Patch
@livekit/components-js-docs Patch
@livekit/component-docs-storybook Patch
@livekit/components-docs-gen Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 20, 2026

@afgarcia86 is attempting to deploy a commit to the LiveKit Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
components-js-storybook-5kld Ready Ready Preview, Comment Mar 20, 2026 2:46pm

Request Review

Copy link
Copy Markdown
Contributor

@1egoman 1egoman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me, thanks for the contribution!

@1egoman 1egoman merged commit dd9a4f4 into livekit:main Mar 20, 2026
5 checks passed
@github-actions github-actions bot mentioned this pull request Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants